const go/types.invalidArg
22 uses
go/types (current package)
builtins.go#L218: check.errorf(x, code, invalidArg+"%s for built-in %s", x, bin.name)
builtins.go#L241: check.errorf(x, InvalidClear, invalidArg+"cannot clear %s: argument must be (or constrained by) map or slice", x)
builtins.go#L346: check.errorf(x, InvalidComplex, invalidArg+"arguments have type %s, expected floating-point", x.typ)
builtins.go#L429: check.errorf(x, InvalidDelete, invalidArg+"%s is not a map", x)
builtins.go#L433: check.errorf(x, InvalidDelete, invalidArg+"maps of %s must have identical key types", x)
builtins.go#L500: check.errorf(x, code, invalidArg+"argument has type %s, expected complex type", x.typ)
builtins.go#L542: check.errorf(arg0, InvalidMake, invalidArg+"cannot make %s: %s", arg0, err.format(check))
builtins.go#L571: check.error(argList[1], SwappedMakeArgs, invalidArg+"length and capacity swapped")
builtins.go#L596: check.errorf(a, InvalidMinMaxOperand, invalidArg+"%s cannot be ordered", a)
builtins.go#L608: check.errorf(a, MismatchedTypes, invalidArg+"mismatched types %s (previous argument) and %s (type of %s)", x.typ, a.typ, a.expr)
builtins.go#L776: check.errorf(arg0, BadOffsetofSyntax, invalidArg+"%s is not a selector expression", arg0)
builtins.go#L791: check.errorf(x, MissingFieldOrMethod, invalidArg+"%s has no single field %s", base, sel)
builtins.go#L798: check.errorf(arg0, InvalidOffsetof, invalidArg+"%s is a method value", arg0)
builtins.go#L802: check.errorf(x, InvalidOffsetof, invalidArg+"field %s is embedded via a pointer in %s", sel, base)
builtins.go#L870: check.errorf(x, InvalidUnsafeSlice, invalidArg+"%s is not a pointer", x)
builtins.go#L892: check.errorf(x, InvalidUnsafeSliceData, invalidArg+"%s is not a slice", x)
builtins.go#L942: check.errorf(x, Test, invalidArg+"%s is not a boolean constant", x)
errors.go#L225: invalidArg = "invalid argument: "
index.go#L411: check.errorf(&x, InvalidIndex, invalidArg+"index %s out of bounds [0:%d]", x.val.String(), max)
index.go#L432: check.errorf(x, code, invalidArg+"%s %s must be integer", what, x)
index.go#L439: check.errorf(x, code, invalidArg+"%s %s must not be negative", what, x)
index.go#L445: check.errorf(x, code, invalidArg+"%s %s overflows int", what, x)